package com.njupt.sellsec.exception;

import com.njupt.sellsec.result.CodeMsg;
import com.sun.org.apache.regexp.internal.RE;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 15:46 2018/7/28
 * @Modified By:
 **/
public class GobalException extends RuntimeException {
    private static final long serialVersionUID = -8095565313378150826L;

    private CodeMsg codeMsg;

    public GobalException(CodeMsg codeMsg){
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg(){
        return codeMsg;
    }
}
